Skip to content

feat(cli): support multiple --upload flags on sandbox create (#1635)#1645

Open
feloy wants to merge 1 commit into
NVIDIA:mainfrom
feloy:multi-upload
Open

feat(cli): support multiple --upload flags on sandbox create (#1635)#1645
feloy wants to merge 1 commit into
NVIDIA:mainfrom
feloy:multi-upload

Conversation

@feloy
Copy link
Copy Markdown

@feloy feloy commented Jun 1, 2026

Closes #1635

Summary

Changes --upload on sandbox create from a single Option<String> to a repeatable Vec<String>, so users can seed a sandbox with multiple paths in one command without needing a post-creation sandbox upload step.

Related Issue

Closes #1635

Changes

  • crates/openshell-cli/src/main.rs: upload field changed to Vec<String>; all local paths are validated upfront before the sandbox is created; three new CLI-parse tests added
  • crates/openshell-cli/src/run.rs: sandbox_create now accepts &[(String, Option<String>, bool)] and iterates over each spec sequentially; progress output shows [1/N] counters when multiple uploads are present
  • crates/openshell-cli/tests/sandbox_create_lifecycle_integration.rs: updated 10 call sites from None to &[] to match the new signature
  • docs/sandboxes/manage-sandboxes.mdx: updated the --upload note with a multi-upload example
  • e2e/rust/src/harness/sandbox.rs: added create_with_uploads helper accepting multiple (local, dest) pairs; create_with_upload delegates to it
  • e2e/rust/tests/upload_create.rs: added create_with_multiple_uploads test that uploads two directories in one sandbox create call and asserts both appear in output

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

…1635)

Closes NVIDIA#1635

Signed-off-by: Philippe Martin <phmartin@redhat.com>
@feloy feloy requested review from a team, derekwaynecarr, maxamillion and mrunalp as code owners June 1, 2026 08:57
@copy-pr-bot
Copy link
Copy Markdown

copy-pr-bot Bot commented Jun 1, 2026

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

All contributors have signed the DCO ✍️ ✅
Posted by the DCO Assistant Lite bot.

@feloy
Copy link
Copy Markdown
Author

feloy commented Jun 1, 2026

I have read the DCO document and I hereby sign the DCO.

@feloy
Copy link
Copy Markdown
Author

feloy commented Jun 1, 2026

recheck

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: support multiple --upload flags on sandbox create

1 participant